package com.dtstack.mongodb.facade;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * Demo
 *
 * <p>
 * </p>
 *
 * @author chuanbai
 * @date 2024/10/17
 */
@Component
public class DemoFacade {

    @Async
    public Long syn(){
        System.out.println("异步线程id：" + Thread.currentThread().getId());
        return Thread.currentThread().getId();
    }
}
